<?php
defined( 'BASEPATH' ) or exit( 'No direct script access allowed' );
class Content_handle extends MY_Controller
{
    function click()
    {
        $id = ( int ) $this->input->get( 'id' );
        $this->load->model( 'content_model' );
        $modify_data = array (
                '@clicked' => 'clicked+1' 
        );
        if (false !== $this->content_model->update( $modify_data, $id ))
        {
            $this->rs->ok();
        }
        $this->rs->err();
    }
}
